<template>
  <el-form-item :label="config.label" :label-width="config.labelWidth" :class="{
    'label-top': config.labelPosition
  }">
    <Node :config="config" :form="form"></Node>
  </el-form-item>
</template>

<script>
import Node from '../Node'
export default {
  props: {
    config: {
      type: Object,
    },
    form: {
      type: Object,
      require: true
    }
  },
  components: { Node },
  data() {
    return {

    }
  },
  computed: {
  },
  created() {
    console.log(28, this.config, this.form);
  },
  methods: {

  },
}
</script>

<style scoped lang="scss">
::v-deep.label-top {
  .el-form-item__content {
    margin: 0 !important;
  }
}
</style>